package com.hua.demo.edu;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootApplication
@ComponentScan(basePackages = {"com.hua"})
@EnableDiscoveryClient  //nacos注册
@ComponentScan(basePackages = {"com.hua.demo.edu.client"})
@EnableFeignClients
public class EduApplication {
    @Autowired
    private  static RedisTemplate redisTemplate;

    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);

    }
}
